package com.aphaca.rs;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@SpringBootApplication
@EnableResourceServer
//开始角色控制接口
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class AphacaApplication {

    public static void main(String[] args) {
        SpringApplication.run(AphacaApplication.class, args);
    }

}
